package cn.zhentao.dao;

import cn.zhentao.pojo.Emp;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface EmpDao {
    @Select("select * from emp")
    List<Emp> findAll();

    @Insert("insert into emp values(null,#{ename},#{job},#{mgr},#{hiredate},#{sal},#{comm},#{deptno})")
    int addEmp(Emp emp);


}
